package com.kanshu.ksgb.fastread.doudou.module.reader.presenter;


import com.kanshu.ksgb.fastread.doudou.base.basemvp.BaseContract;
import com.kanshu.ksgb.fastread.doudou.common.net.INetCommCallback;
import com.kanshu.ksgb.fastread.doudou.common.net.bean.BaseResult;
import com.kanshu.ksgb.fastread.doudou.module.book.bean.ChapterBean;
import com.kanshu.ksgb.fastread.doudou.module.book.bean.SimpleChapterBean;
import com.kanshu.ksgb.fastread.doudou.module.book.retrofit.requestparams.ChapterRequestParams;

/**
 * Created by newbiechen on 17-5-16.
 */

public interface ReadContract extends BaseContract {
    interface View extends BaseContract.BaseView {
        void showContent(BaseResult<ChapterBean> chapterBean,int loadType);
        void showError(String contentId, int code, String desc);
    }

    interface Presenter extends BaseContract.BasePresenter<View>{
        void getChapterContent(ChapterRequestParams params, int loadType);
        void getSimpleChapterInfo(String book_id, String order, INetCommCallback<SimpleChapterBean> callback);
        void upLoadUserReadaction(String bookId, String contentId, int pageNum, long readConsumeTime);
    }
}
